export const apiHost = 'http://api.down.72zx.com/api/'
export const department = apiHost + 'department'
export const business = apiHost + 'business'
export const Login = apiHost + 'auth/login' // 登录
export const userUrl = apiHost + 'auth/user' // 获取用户token
export const sitesListUrl = apiHost + 'sites/lists' // 全部站点接口
export const downloaderAnalyzeUrl = apiHost + 'data/site_and_product' // 下载器分析
export const DownloaderSitedataUrl = apiHost + 'data/site_data' // 下载器明细
export const ProductUrl = apiHost + 'product' // 产品列表

// 获取用户资料请求头
export const getHeader = function () {
  let authUser = JSON.parse(window.localStorage.getItem('authUser'))
  return {
    'Accept': 'application/json',
    'content-type': 'application/json',
    'Authorization': 'Bearer' + authUser.token
  }
}
